import 'froala-editor/js/plugins.pkgd.min.js';
import 'froala-editor/js/third_party/embedly.min';
import 'froala-editor/js/third_party/font_awesome.min';
import 'froala-editor/js/third_party/spell_checker.min';
import 'froala-editor/js/third_party/image_tui.min';
import 'froala-editor/css/froala_editor.pkgd.min.css';
import 'froala-editor/css/froala_style.min.css';
import VueFroala from 'vue-froala-wysiwyg';
import zh_cn from 'froala-editor/js/languages/zh_cn'

export default VueFroala;

export const froalaConfig = {
  zh_cn,
  imageUploadURL: `${window.basePathname}/sys/attach/froalaUpload`,
  fileUploadURL: `${window.basePathname}/sys/attach/froalaUpload`,
  imageUploadParam: 'file',
  fileUploadParam: 'file',
  zIndex: 10,
  language: 'zh_cn',
  imageUploadParams: {
    'ff-token': ''
  },
  fileUploadParams: {
    'ff-token': ''
  }
};
